package com.amigo.online.provider.search.service;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.amigo.online.common.core.response.Response;

@FeignClient(name = "amigo-online-provider-user")
public interface UserFeignService {

    @RequestMapping(value = "/user/getAll", method = RequestMethod.GET)
    public ResponseEntity<Response> getAll();

    @RequestMapping(value = "/user/token/{token}", method = RequestMethod.GET)
    public ResponseEntity<Response> getUserInfoByToken(@PathVariable("token") String token);

    @RequestMapping(value = "/user/getfollowedByUserId", method = RequestMethod.GET)
    public ResponseEntity<Response> getfollowedByUserId(@RequestParam("userId") Long userId, @RequestParam("ids") List<Long> ids);

    @RequestMapping(value = "/user/info/{id}", method = RequestMethod.GET)
    public ResponseEntity<Response> getUserInfoById(@PathVariable("id") Long id);
}
